import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.edge.EdgeDriver;
import org.testng.annotations.Test;

public class UiTest1 {

    public WebDriver webDriver;


   @Test
    public void openBaidu(){
        webDriver=new EdgeDriver();
       webDriver.get("http://www.baidu.com");
       webDriver.manage().window().maximize();
       webDriver.findElement(By.xpath("//*[@id=\"kw\"]")).sendKeys("腾讯");
       webDriver.findElement(By.xpath("//*[@id=\"su\"]")).click();

    }

}
